﻿	//不需要复选模式
	config.param.selectModel = 'row';
	
	cols[0] = {col:
		{header:'<div class="hd_button_add" title="添加我关注的项目">&#160;</div>', id:'col_button_add', width:30, xtype:'actioncolumn', menuDisabled:true, align:'center', items:[{
				icon: 'resources/images/icons/fam/clear.gif',
				tooltip: '取消关注',	
				handler: function(grid, rowIndex, colIndex) {
					grid.getSelectionModel().selectRow(rowIndex);
					grid.gridNode.event.del();
				}
			}]
		}
	};
	
	//把项目名称字段值改为超链接
	var renderTask = function(val, metaData, record) {
		var dataId = record.get('project_my__project_id');
		
		var chgcolor = 'onmouseover="this.style.color=\'#FF4400\';" onmouseout="this.style.color=\'#0080FF\';"';
		var html = '<a href="#" title="打开项目监控功能" style=\'color:#0080FF;\' '+ chgcolor +' onclick="Jxstar.createNode(\'project_monitor\', \''+ dataId +'\');">'+ val +'</a>';
		return html;
	};
	
	cols[2].col.renderer = renderTask;
	
	config.initpage = function(gridNode){
		var grid = gridNode.page;
		grid.on('render', function(){
			Ext.fly(grid.getView().innerHd).on('mousedown', function(e, t){
			//添加表头添加事件
				if(e.button === 0 && t.className == 'hd_button_add'){
					e.stopEvent();
					grid.gridNode.event.dataImport();
				}
			}, grid);
        }, grid);
		
	};
	
	